package com.servicesManagement.model;
// Generated Dec 13, 2014 11:53:18 AM by Hibernate Tools 3.2.1.GA


import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * ServiceAttributeConf generated by hbm2java
 */
//@Entity
//@Table(name="SERVICE_ATTRIBUTE_CONF"
//    ,schema="SANKAR"
//)
public class ServiceAttributeConf  implements java.io.Serializable {


     private ServiceAttributeConfId id;
     private Attribute attribute;
     private Service service;
     private BigDecimal changedByUserId;
     private Date changedDate;
     private BigDecimal createdByUserId;
     private Date createdDate;
     private BigDecimal displayOrder;

    public ServiceAttributeConf() {
    }

	
    public ServiceAttributeConf(ServiceAttributeConfId id, Attribute attribute, Service service) {
        this.id = id;
        this.attribute = attribute;
        this.service = service;
    }
    public ServiceAttributeConf(ServiceAttributeConfId id, Attribute attribute, Service service, BigDecimal changedByUserId, Date changedDate, BigDecimal createdByUserId, Date createdDate, BigDecimal displayOrder) {
       this.id = id;
       this.attribute = attribute;
       this.service = service;
       this.changedByUserId = changedByUserId;
       this.changedDate = changedDate;
       this.createdByUserId = createdByUserId;
       this.createdDate = createdDate;
       this.displayOrder = displayOrder;
    }
   
     @EmbeddedId
    
    @AttributeOverrides( {
        @AttributeOverride(name="attributeId", column=@Column(name="ATTRIBUTE_ID", nullable=false, scale=0) ), 
        @AttributeOverride(name="serviceId", column=@Column(name="SERVICE_ID", nullable=false, scale=0) ) } )
    public ServiceAttributeConfId getId() {
        return this.id;
    }
    
    public void setId(ServiceAttributeConfId id) {
        this.id = id;
    }
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ATTRIBUTE_ID", nullable=false, insertable=false, updatable=false)
    public Attribute getAttribute() {
        return this.attribute;
    }
    
    public void setAttribute(Attribute attribute) {
        this.attribute = attribute;
    }
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="SERVICE_ID", nullable=false, insertable=false, updatable=false)
    public Service getService() {
        return this.service;
    }
    
    public void setService(Service service) {
        this.service = service;
    }
    
    @Column(name="CHANGED_BY_USER_ID")
    public BigDecimal getChangedByUserId() {
        return this.changedByUserId;
    }
    
    public void setChangedByUserId(BigDecimal changedByUserId) {
        this.changedByUserId = changedByUserId;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="CHANGED_DATE", length=7)
    public Date getChangedDate() {
        return this.changedDate;
    }
    
    public void setChangedDate(Date changedDate) {
        this.changedDate = changedDate;
    }
    
    @Column(name="CREATED_BY_USER_ID")
    public BigDecimal getCreatedByUserId() {
        return this.createdByUserId;
    }
    
    public void setCreatedByUserId(BigDecimal createdByUserId) {
        this.createdByUserId = createdByUserId;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="CREATED_DATE", length=7)
    public Date getCreatedDate() {
        return this.createdDate;
    }
    
    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }
    
    @Column(name="DISPLAY_ORDER")
    public BigDecimal getDisplayOrder() {
        return this.displayOrder;
    }
    
    public void setDisplayOrder(BigDecimal displayOrder) {
        this.displayOrder = displayOrder;
    }




}


